package sort_BubbleSort;

public class BubbleSort {
	public void bubbleSort(int[] r, int low, int high) {
		int n = high - low + 1;
		for (int i = 1; i < n; i++)
			for (int j = low; j <= high - i; j++)
				if (r[j] > r[j + 1]) {
					int temp = r[j];
					r[j] = r[j + 1];
					r[j + 1] = temp;
				}
	}
}
